package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wumu
 * @since 2020-05-22
 */
public class DevFertilizerPipe extends Model<DevFertilizerPipe> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer pipeNumber;

    private Long fertilizerId;

    private Double instantFlow;

    private Float ratio;

    private Float pressure;

    private Integer consumption;

    private Float totalRatio;

    private String tenantId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPipeNumber() {
        return pipeNumber;
    }

    public void setPipeNumber(Integer pipeNumber) {
        this.pipeNumber = pipeNumber;
    }

    public Long getFertilizerId() {
        return fertilizerId;
    }

    public void setFertilizerId(Long fertilizerId) {
        this.fertilizerId = fertilizerId;
    }

    public Double getInstantFlow() {
        return instantFlow;
    }

    public void setInstantFlow(Double instantFlow) {
        this.instantFlow = instantFlow;
    }

    public Float getRatio() {
        return ratio;
    }

    public void setRatio(Float ratio) {
        this.ratio = ratio;
    }

    public Float getPressure() {
        return pressure;
    }

    public void setPressure(Float pressure) {
        this.pressure = pressure;
    }

    public Integer getConsumption() {
        return consumption;
    }

    public void setConsumption(Integer consumption) {
        this.consumption = consumption;
    }

    public Float getTotalRatio() {
        return totalRatio;
    }

    public void setTotalRatio(Float totalRatio) {
        this.totalRatio = totalRatio;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DevFertilizerPiple{" +
        "id=" + id +
        ", pipleNumber=" + pipeNumber +
        ", fertilizerId=" + fertilizerId +
        ", instantFlow=" + instantFlow +
        ", ratio=" + ratio +
        ", pressure=" + pressure +
        "}";
    }
}
